package org.jeecg.modules.gift.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.gift.entity.GiftActivity;
import org.jeecg.modules.gift.entity.GiftActivityUser;
import org.jeecg.modules.gift.entity.GiftActivityUserItem;
import org.jeecg.modules.gift.mapper.GiftActivityUserMapper;
import org.jeecg.modules.gift.service.IGiftActivityUserService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 活动用户
 * @Author: jeecg-boot
 * @Date:   2024-07-12
 * @Version: V1.0
 */
@Service
public class GiftActivityUserServiceImpl extends ServiceImpl<GiftActivityUserMapper, GiftActivityUser> implements IGiftActivityUserService {

    @Override
    public IPage<GiftActivity> selectPageUserActivityList(Page<GiftActivity> page, String userId) {
        return getBaseMapper().selectPageUserActivityList(page,userId);
    }

    @Override
    public IPage<GiftActivityUserItem> selectPageActivityUserList(Page<GiftActivityUserItem> page, String activityId) {
        return getBaseMapper().selectPageActivityUserList(page,activityId);
    }
}
